PROJECT(rtmd C )
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)

IF(${CMAKE_SYSTEM} MATCHES "Windows")
	ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
	ADD_LIBRARY( rtmd STATIC RTMD.c)
ELSE()
	ADD_LIBRARY( rtmd SHARED RTMD.c)
	TARGET_LINK_LIBRARIES(rtmd rt)
ENDIF()

ADD_SUBDIRECTORY(examples)